package pl.edu.agh.neuraleconomy.persistence.base;

import java.util.List;

import pl.edu.agh.neuraleconomy.model.base.IModel;

import com.j256.ormlite.dao.Dao;

public interface IDao<MODEL extends IModel> {
	public Dao<MODEL, Long> getDao();

	void create(MODEL model);

	MODEL getById(Long id);

	List<MODEL> getAll();

	void save(MODEL model);

	void tryDelete(MODEL model);
}
